package com.eve.springcloud.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.eve.springcloud.common.Jsons;
/**
 * 自定义限流处理类
 * @author HXL
 *
 */
public class CustomerBlockHandler {
	
	public static Jsons handlerException(BlockException exception) {
		Jsons ok = Jsons.error(444, exception.getClass().getCanonicalName()+" 客户自定义限流处理类：服务不可用--1");
		return ok;
	}
	
	public static Jsons handlerException2(BlockException exception) {
		Jsons ok = Jsons.error(444, exception.getClass().getCanonicalName()+" 客户自定义限流处理类：服务不可用--2");
		return ok;
	}
}
